﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;

namespace IDCardReaderCZ
{
    public struct IDCardData
    {
        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 40)]
        public byte[] Name;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
        public byte[] Gender;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
        public byte[] Birthday;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 20)]
        public byte[] Nation;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
        public byte[] IssueDay;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
        public byte[] ExpireDay;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 200)]
        public byte[] Address;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 40)]
        public byte[] IDCode;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
        public byte[] Organs;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)]
        public byte[] FPData;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 1024)]
        public byte[] PhotoData;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 50)]
        public byte[] aucNo;

        [MarshalAs(UnmanagedType.ByValArray, SizeConst = 10)]
        public byte[] aucTypeId;
    }
}
